package com.note.simpleadmin.utils;
import com.note.simpleadmin.dto.UserInfo;
import org.apache.shiro.SecurityUtils;
public class UserUtil {
	public static UserInfo getUser() {
		return (UserInfo) SecurityUtils.getSubject().getPrincipal();
	}
	public static String getUserId()
	{
		return getUser().getId();
	}
}
